package fr.jade.base;

import fr.jade.util.log.Logger;
import fr.jade.util.log.handler.Handler;

public class JadeBaseObject {

	protected Logger l = null;
	protected Boolean log = true;
	
	public JadeBaseObject() {
    super();
	  this.l = new Logger();
	}

  protected void log(String s) {
    assert l != null;
    if(log)
      l.log(s);
  }
  
  protected void log(Exception e) {
    assert l!= null;
    if(log)
      l.log(e);
  }
}
